package com.services.impl;

import com.beans.NewsContent;
import com.data.mapper.BaseMapper;
import com.data.mapper.NewsContentMapper;
import com.services.NewsContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jiangwei
 * @since 18/1/23
 */
@Service
public class NewsContentServiceImpl extends BaseServiceImpl<NewsContent> implements NewsContentService {
    @Autowired
    private NewsContentMapper newsContentMapper;

    @Override
    public BaseMapper<NewsContent> getMapper(){return newsContentMapper; }

    @Override
    public List<NewsContent> queryListByIndex(){
        return newsContentMapper.queryListByIndex();
    }

}
